package com.kitty.game.player.model;

import com.kitty.game.role.model.Role;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Setter
@Getter
public class PlayerProfile implements Serializable {

    /**
     * 账户ID
     */
    private String sid;

    private int roleId;//角色id

    private long gid;//面板ID20位长度

    private String name;//角色名称

    private String distName;

    private short roleIcon;//角色图标

    private short level;

    private short polar;//门派

    private long enterTime;//进入游戏的时间

    private int weaponIcon;//武器ICON

    private byte gender;//性别1男2女

    private int tao;

    private String partyName;//所在帮派名称

    private String currTitle;//激活称谓

    private short strangerLevel;//拒绝陌生人消息等级


    public PlayerProfile(String sid, int roleId, long gid, String name, String distName,
                         short roleIcon, short level, short polar, long enterTime) {
        this.sid = sid;
        this.roleId = roleId;
        this.gid = gid;
        this.name = name;
        this.distName = distName;
        this.roleIcon = roleIcon;
        this.level = level;
        this.polar = polar;
        this.enterTime = enterTime;
    }
    public PlayerProfile(String sid, int roleId,String name,String distName) {
        this.sid = sid;
        this.roleId = roleId;
        this.name = name;
        this.distName = distName;

    }

    public PlayerProfile(Role role) {
        this.sid = role.getSid();
        this.roleId = role.getRoleId();
        this.gid = role.getUid();
        this.name = role.getName();
        this.distName = role.getDistName();
        this.roleIcon = role.getRoleIcon();
        this.level = role.getLevel();
        this.polar = role.getPolar();
        this.enterTime = role.getEnterTime();
    }
}
